/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-11-22
 * Time: 21:49
 */
//1.这个类里的属性务必是public属性或者是public getter/setter
// 2.必须有不带参数的构造方法,如果没写构造方法编译器会会自动提供不带参数的构造方法

public class Message {
    private String from;
    private String to;
    private String message;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
